package com.yc.junit;

public class Assert {
    public static void assertEquals(
            Object expect,
            Object action) {
        if(expect.equals(action) == false){
            throw new AssertionError(
                    String.format("期待值是%s, 实际值是%s",expect,action));
        }
    }
}

class AssertionError extends RuntimeException{
    public AssertionError(String message) {
        super(message);
    }
}
